package com.coo.display
{
	import flash.display.Graphics;
	
	public class Rect extends Baseshape
	{
		
		private var _width:Number;
		private var _height:Number;
		
		public function Rect( width:Number = 100, height:Number = 100 )
		{
			this._width    = width;
			this._height   = height;
			
			this.drawMain();
		}
		
		override protected function drawMain():void
		{
			var g:Graphics = this.graphics;
			
			g.clear();
			
			g.lineStyle( this.lineThickness, this.lineColor, this.lineAlpha, true );
			g.beginFill( this.fillColor, this.fillAlpha );
			g.drawRect( 0,0,this._width,this._height );
			g.endFill();
			
		}

	}
}